package com.bdqn.Demo.controller;

import org.apache.log4j.Logger;
import org.springframework.beans.propertyeditors.CurrencyEditor;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;

import javax.xml.crypto.Data;
import java.text.SimpleDateFormat;

public class BaseController {
    private static final Logger logger=Logger.getLogger(BaseController.class);
    @InitBinder
    public void InitBinder(WebDataBinder dataBinder){
        logger.info("进入BaseController的InitBinder");
//        dataBinder.registerCustomEditor(Data.class,new CurrencyEditor(new SimpleDateFormat("yyyy-MM-dd") ,true));
    }
}
